package com.llu.feign.imp;

import com.llu.entity.Book;
import com.llu.feign.BookFeignClient;
import org.springframework.stereotype.Component;

@Component
public class BookFeignClientFallback implements BookFeignClient {

    @Override
    public Book getBookById(int bid) {
        return new Book(-1,"替代的方案"," 熔断后替代的方案 ", 0);
    }

    @Override
    public boolean bookBorrow(int bid) {
        return false;
    }

    @Override
    public int bookRemain(int bid) {
        return 0;
    }
}
